package com.yishe.constant;

import lombok.Getter;

/**
 * @author : chusifeng
 * @version :1.0
 * @date :Create in 2021/4/9 15:30
 * @description: 系统数据库字段常量说明
 * @package com.yishe.constant
 * @className YiSheContant
 */
public class YiSheContant {
    /**
     * 职务
     */
    public enum Position_Type{
        /**
         * 超级管理员
         */
        Super("超级管理员","A"),
        Normal("普通员工","1");

        Position_Type(String name, String code) {
            this.name = name;
            this.code = code;
        }
        @Getter
        private String name;
        @Getter
        private String code;



    }

    /**
     * 课程处理状态
     */
    public enum Case_Status{
        /**
         * 超级管理员
         */
        WAIT("待上课","0"),
        ACTION("已完成","1");

        Case_Status(String name, String code) {
            this.name = name;
            this.code = code;
        }
        @Getter
        private String name;
        @Getter
        private String code;

        public static String getName(String code){
            for (Case_Status case_status : Case_Status.values()) {
                if (case_status.getCode().equals(code)){
                    return case_status.getName();
                }
            }
            return "";
        }

    }
}
